/* eslint-disable */
// @ts-ignore
import request from "@/request";

/** addTeam POST /api/team/add */
export async function addTeamUsingPost(
  body: API.TeamAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>("/api/team/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteTeam POST /api/team/delete */
export async function deleteTeamUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/team/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** editTeam POST /api/team/edit */
export async function editTeamUsingPost(
  body: API.TeamEditRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/team/edit", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getTeamVOById GET /api/team/get/vo */
export async function getTeamVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTeamVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseTeamVO_>("/api/team/get/vo", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listMyJoinVOByPage POST /api/team/join/list/page/vo */
export async function listMyJoinVoByPageUsingPost(
  body: API.TeamQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageTeamVO_>("/api/team/join/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listTeamByPage POST /api/team/list/page */
export async function listTeamByPageUsingPost(
  body: API.TeamQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageTeam_>("/api/team/list/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listTeamVOByPage POST /api/team/list/page/vo */
export async function listTeamVoByPageUsingPost(
  body: API.TeamQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageTeamVO_>("/api/team/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyTeamVOByPage POST /api/team/my/list/page/vo */
export async function listMyTeamVoByPageUsingPost(
  body: API.TeamQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageTeamVO_>("/api/team/my/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** updateTeam POST /api/team/update */
export async function updateTeamUsingPost(
  body: API.TeamUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/team/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
